Skip to content

Add optional Effect driver with deterministic deadline scheduling - #44

Merged
0thernet merged 2 commits into
mainfrom
codex/effect-driver-20260906
Sep 6, 2026
Merged

Add optional Effect driver with deterministic deadline scheduling#44
0thernet merged 2 commits into
mainfrom
codex/effect-driver-20260906

Conversation

@0thernet

@0thernet 0thernet commented Sep 6, 2026

Copy link
Copy Markdown
Member

Adds @hraness/direct/effect, an optional Effect 3.22.1 driver for deterministic asynchronous controller tests. Deadline mode uses Direct's existing clock, tracks operation and Layer-owned fibers, fences stale commits on reset/dispose, and retains root, child, background and teardown failures when closing. Existing FIFO scheduling and the default/core/React/testing/web package graphs stay compatible.

The change includes a neutral controller example, an executable architecture policy, installed-consumer checks under Bundler and NodeNext resolution, and bounded package-inventory updates for the added entry and source types. Independent review reproduced and repaired missing Layer-fiber quiescence and lost child Causes. Native callbacks and noncooperative work remain the caller's responsibility.

Validation:

  • 18 focused driver tests, 175 assertions; 28 compatibility tests, 1,323 assertions.
  • Shared policy fixtures, strict typecheck/lint, historical release recovery and current packed-consumer checks pass.
  • Final bun run check passes on4f67db5 with a clean generated tree:23 release tests,424 product tests (69,186 assertions),25 todo tests,29 native example tests, real browser verification/production marker scans and iOS/Android/Web exports. Knowledge-base checks also pass. Required CI must pass before merge.

Closes #43.

@0thernet
0thernet merged commit af954e7 into main Sep 6, 2026
5 checks passed
@0thernet
0thernet deleted the codex/effect-driver-20260906 branch September 6, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an opt-in Effect driver with explicit clock and asynchronous ownership

1 participant